<template>
	<view>
		detail07
		<button @click="back">返回</button>
	</view>
</template>

<script setup>
	import {ref,getCurrentInstance} from 'vue'
	// this
	const $instance=ref(getCurrentInstance().proxy)
function back(){
	uni.navigateBack({
		delta:1,
		
	})
	const eventChannel = $instance.value.getOpenerEventChannel()
	eventChannel.emit('acceptdata',{
		data:'详情页数据传到了cart页'
	})
}
</script>

<style lang="scss">

</style>
